home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Just Call Me Internet
/
Just Call Me Internet.iso
/
com
/
computer
/
casio_st
/
prog_fx
/
divers
/
compte.sha
< prev
next >
Wrap
Text File
|
1994-03-01
|
1KB
|
19 lines
10 REM MEMO: CCP
20 REM 01/01/90,LIBELLE,DEBIT,CREDIT
30 REM % (FIN FICHIER)
40 RESTORE#:RESTORE# "CCP":READ# A$
50 SOLDE=0
60 READ# DATE$:IF DATE$="%" THEN 80
70 READ# L$,D$,C$:SOLDE=SOLDE-VAL(D$)+VAL(C$):GOTO 60
80 CLS:PRINT "SOLDE:";SOLDE;CHR$(13);
90 INPUT "DATE (JJ/MM/AA):",DATE$:LOCATE 0,0:LOCATE 0,1:PRINT " ";:LOCATE 0,0:LOCATE 0,1
100 INPUT "LIBELLE:",L$:LOCATE 0,0:LOCATE 0,1:PRINT " ";:LOCATE 0,0:LOCATE 0,1
110 INPUT "SOMME:",S:LOCATE 0,0:LOCATE 0,1:PRINT " ";:LOCATE 0,0:LOCATE 0,1
120 INPUT "Debit/Credit:",A$:LOCATE 0,0:LOCATE 0,1:PRINT " ";:LOCATE 0,0:LOCATE 0,1
130 IF A$<>"C" AND A$<>"D" THEN 120
140 IF A$="D" THEN D$=STR$(S):C$=""
150 IF A$="C" THEN C$=STR$(S):D$=""
160 CLS:PRINT DATE$","L$;CHR$(13)"Debit:"D$",Credit:"C$:INPUT "OK? (O/N):";A$:IF A$="N" THEN GOTO 50
170 RESTORE#:RESTORE# "%":WRITE# "%,,,"
180 RESTORE#:RESTORE# "%,,,":WRITE# DATE$,L$,D$,C$:WRITE# "%":GOTO 40